{% extends 'home_page/base_index.html' %}
{% load static %}


{% block show_body %}

    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title">填写就职意向</h4>
                </div>
                <div class="card-content">
                    <div class="card-body">
                        <form class="form" method="post" id="intentionForm" action="{% url 'student:recommend' %}">
                            {% csrf_token %}
                            <div class="card-header">输入求职意向和实习经历</div>
                            <div class="card-body">
                                <textarea class="form-control"
                                          id="exampleFormControlTextarea1"
                                          rows="3" name="intention"></textarea>
                                <br>
                                <div class="col-sm-12 d-flex justify-content-end">
                                    <button type="submit" class="btn btn-primary me-1 mb-1" id="submitBtn">提交</button>
                                    <button type="reset" class="btn btn-light-secondary me-1 mb-1">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">
                        <a href="{% url 'organization:job_detail' %}?job_id={{ most_similar_job.id }}">
                            <h4 class="card-title">{{ most_similar_job.title }}</h4>
                        </a>
                    </div>
                    <div class="card-body">
                        <p>{{ most_similar_job.salary_range }} &nbsp&nbsp&nbsp&nbsp {{ most_similar_job.location }} </p>
                        <hr>
                        <p>{{ most_similar_job.requirements }}</p>
                        <p>{{ most_similar_job.description }}</p>
                    </div>
                </div>
            </div>
        </div>

{% endblock %}
